package org.omg.GIOP;

//

import com.cognition.util.marshal.JavaPrimitiveInputStream;
import com.cognition.util.marshal.JavaPrimitiveOutputStream;
import java.io.IOException;

// Enum definition : MsgType_1_0
//
// @author OpenORB Compiler
//
public final class MsgType_1_0 implements org.omg.CORBA.portable.IDLEntity
{
	//
	// Internal member value 
	//
	private int _MsgType_1_0_value;

	//
	// Enum member Request value 
	//
	public static final int _Request = 0;

	//
	// Enum member Request
	//
	public static final MsgType_1_0 Request = new MsgType_1_0(_Request);

	//
	// Enum member Reply value 
	//
	public static final int _Reply = 1;

	//
	// Enum member Reply
	//
	public static final MsgType_1_0 Reply = new MsgType_1_0(_Reply);

	//
	// Enum member CancelRequest value 
	//
	public static final int _CancelRequest = 2;

	//
	// Enum member CancelRequest
	//
	public static final MsgType_1_0 CancelRequest = new MsgType_1_0(_CancelRequest);

	//
	// Enum member LocateRequest value 
	//
	public static final int _LocateRequest = 3;

	//
	// Enum member LocateRequest
	//
	public static final MsgType_1_0 LocateRequest = new MsgType_1_0(_LocateRequest);

	//
	// Enum member LocateReply value 
	//
	public static final int _LocateReply = 4;

	//
	// Enum member LocateReply
	//
	public static final MsgType_1_0 LocateReply = new MsgType_1_0(_LocateReply);

	//
	// Enum member CloseConnection value 
	//
	public static final int _CloseConnection = 5;

	//
	// Enum member CloseConnection
	//
	public static final MsgType_1_0 CloseConnection = new MsgType_1_0(_CloseConnection);

	//
	// Enum member MessageError value 
	//
	public static final int _MessageError = 6;

	//
	// Enum member MessageError
	//
	public static final MsgType_1_0 MessageError = new MsgType_1_0(_MessageError);

	//
	// Return the internal member value
	// @return	the member value
	//
	public int value()
	{
		return _MsgType_1_0_value;
	}

	//
	// Return a enum member from its value
	// @param		an enum value
	// @return	an enum member
	//
	public static MsgType_1_0 from_int( int value )
	{
		switch ( value )
		{
		case 0 :
			return Request;
		case 1 :
			return Reply;
		case 2 :
			return CancelRequest;
		case 3 :
			return LocateRequest;
		case 4 :
			return LocateReply;
		case 5 :
			return CloseConnection;
		case 6 :
			return MessageError;
		}
		throw new org.omg.CORBA.BAD_OPERATION();
	}

	//
	// Private constructor
	// @param		the enum value for this new member
	//
	private MsgType_1_0( int value )
	{
		_MsgType_1_0_value = value;
	}


}
